package cn.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liufl E-mail:Huberier@allpyra.com
 * @version 创建时间：2017年9月25日 上午10:12:18
 * 

	程序一：运行HDFSWordSplit执行分词统计
	程序二：CsdnSpilder运行main获取爬虫资源，再启动controller:http://localhost:8080/spliderHome
 */
@SpringBootApplication
@RestController//SpringBootApplication和Controller二合一
public class HadoopApplication {

	@RequestMapping("/")
	public String home() {
		return "Welcome to Hadoop World";
	}
	public static void main(String[] args) {
		SpringApplication.run(HadoopApplication.class, args);
	}
}